/*
 * Copyright (c) 2024. hallele, Inc All rights reserved.
 */

package cn.hallele.ms.starter.web.framework.flow;

import cn.hallele.ms.starter.web.framework.context.ActionContext;
import cn.hallele.ms.starter.web.framework.node.ServiceFlow;
import cn.hallele.ms.starter.web.framework.publisher.ActionEventPublisher;
import com.yomahub.liteflow.annotation.LiteflowComponent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * hallele_mc_core
 *
 * @author anle5
 * @since 2024/12/23 23:33
 */
@Slf4j
@LiteflowComponent
public class ChainFinishedPublisherFlow extends ServiceFlow {
    @Autowired
    private ActionEventPublisher publisher;

    @Override
    public void process() throws Exception {
        publisher.publishChainFinishedEvent(this.getContextBean(ActionContext.class));
    }
}
